package com.wanmait.wanmarecruit.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.wanmait.wanmarecruit.service.IntroductionTabService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wanmait.wanmarecruit.mapper.IntroductionTabMapper;
import com.wanmait.wanmarecruit.entity.IntroductionTab;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(rollbackFor = Exception.class)
public class IntroductionTabServiceImpl extends ServiceImpl<IntroductionTabMapper, IntroductionTab> implements IntroductionTabService {

    @Resource
    private IntroductionTabMapper introductionTabMapper;

    @Override
    public List<IntroductionTab> getAllIntroductionTab() {
        LambdaQueryWrapper<IntroductionTab> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.select(IntroductionTab::getIntroductionTabInfo,IntroductionTab::getId);
        return this.list(queryWrapper);
    }
}
